package cn.ren.hai.base.service.impl;

import cn.ren.hai.base.entity.RhViewTable;
import cn.ren.hai.base.mapper.RhViewTableMapper;
import cn.ren.hai.base.service.RhViewTableService;
import cn.ren.hai.core.entity.PageInfo;
import cn.ren.hai.core.entity.QueryPage;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

/**
 * 视图表格(RhViewTable)表服务实现类
 *
 * @author makejava
 * @since 2022-01-24 22:32:13
 */
@Service("rhViewTableService")
public class RhViewTableServiceImpl extends ServiceImpl<RhViewTableMapper, RhViewTable>  implements RhViewTableService {
    
    private final RhViewTableMapper rhViewTableMapper;
    
    public RhViewTableServiceImpl(RhViewTableMapper rhViewTableMapper) {
        this.rhViewTableMapper = rhViewTableMapper;
    }    

    @Override
    public PageInfo<RhViewTable> list(QueryPage<RhViewTable> page) {
        QueryWrapper<RhViewTable> queryWrapper = new QueryWrapper<>();
        PageHelper.startPage(page);
        return new PageInfo<>(rhViewTableMapper.selectList(queryWrapper));
    }
   
}

